<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dilconf</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dilconf";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dilconf.html" class="symbol">dilconf</a></h1>
  
<div class="summary">The configuration file of dil.</div>
The file is searched for in the following order:
 <ol>
   <li>The file path set in the environment variable DILCONF.</li>
   <li>The current working directory.</li>
   <li>The directory set in the environment variable HOME.</li>
   <li>The executable's directory.</li>
 </ol>
 The program will fail with an error msg if this file couldn't be found.<br/>
<p class="bl"/>
 Any environment variable used inside a string is expanded to its value.
 The variables BINDIR and DATADIR are set by dil. Examples:
 <ul>
   <li>${HOME} -> the home directory (e.g. "/home/name" or "C:\Documents and Settings\name").</li>
   <li>${BINDIR} -> the absolute path to the executable's directory (e.g. "/home/name/dil/bin" or "C:\dil\bin").</li>
   <li>${DATADIR} -> the data directory of dil (e.g. "/home/name/dil/data" or "C:\dil\data").</li>
 </ul>
<p class="bl"/>
 Relative paths are resolved and made absolute using the current working directory.
<dl>
<dt class="decl">var <a class="symbol _variable" name="DATADIR" href="./htmlsrc/dilconf.html#L24" kind="variable" beg="24" end="24">DATADIR</a>; <a title="Permalink to this symbol" href="#DATADIR" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L24">#</a></dt>
<dd class="ddef">
<div class="summary">Files needed by dil are located in this directory.</div></dd>
<dt class="decl">var <a class="symbol _variable" name="VERSION_IDS" href="./htmlsrc/dilconf.html#L27" kind="variable" beg="27" end="27">VERSION_IDS</a>; <a title="Permalink to this symbol" href="#VERSION_IDS" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L27">#</a></dt>
<dd class="ddef">
<div class="summary">Predefined version identifiers.</div></dd>
<dt class="decl">var <a class="symbol _variable" name="IMPORT_PATHS" href="./htmlsrc/dilconf.html#L31" kind="variable" beg="31" end="31">IMPORT_PATHS</a>; <a title="Permalink to this symbol" href="#IMPORT_PATHS" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L31">#</a></dt>
<dd class="ddef">
<div class="summary">An array of import paths to look for modules.
 E.g.: ["src/", "import/"]</div></dd>
<dt class="decl">var <a class="symbol _variable" name="DDOC_FILES" href="./htmlsrc/dilconf.html#L36" kind="variable" beg="36" end="36">DDOC_FILES</a>; <a title="Permalink to this symbol" href="#DDOC_FILES" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L36">#</a></dt>
<dd class="ddef">
<div class="summary">DDoc macro file paths.</div>
Macro definitions in ddoc_files[n] override the ones in ddoc_files[n-1].<br/>
 E.g.: ["src/mymacros.ddoc", "othermacros.ddoc"]</dd>
<dt class="decl">var <a class="symbol _variable" name="LANG_FILE" href="./htmlsrc/dilconf.html#L39" kind="variable" beg="39" end="39">LANG_FILE</a>; <a title="Permalink to this symbol" href="#LANG_FILE" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L39">#</a></dt>
<dd class="ddef">
<div class="summary">Path to the language file.</div></dd>
<dt class="decl">var <a class="symbol _variable" name="XML_MAP" href="./htmlsrc/dilconf.html#L41" kind="variable" beg="41" end="41">XML_MAP</a>; <a title="Permalink to this symbol" href="#XML_MAP" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L41">#</a></dt>
<dd class="ddef">
<div class="summary">Path to the xml map.</div></dd>
<dt class="decl">var <a class="symbol _variable" name="HTML_MAP" href="./htmlsrc/dilconf.html#L43" kind="variable" beg="43" end="43">HTML_MAP</a>; <a title="Permalink to this symbol" href="#HTML_MAP" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L43">#</a></dt>
<dd class="ddef">
<div class="summary">Path to the html map.</div></dd>
<dt class="decl">var <a class="symbol _variable" name="LEXER_ERROR" href="./htmlsrc/dilconf.html#L53" kind="variable" beg="53" end="53">LEXER_ERROR</a>; <a title="Permalink to this symbol" href="#LEXER_ERROR" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L53">#</a></dt>
<dt class="decl">var <a class="symbol _variable" name="PARSER_ERROR" href="./htmlsrc/dilconf.html#L54" kind="variable" beg="54" end="54">PARSER_ERROR</a>; <a title="Permalink to this symbol" href="#PARSER_ERROR" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L54">#</a></dt>
<dt class="decl">var <a class="symbol _variable" name="SEMANTIC_ERROR" href="./htmlsrc/dilconf.html#L55" kind="variable" beg="55" end="55">SEMANTIC_ERROR</a>; <a title="Permalink to this symbol" href="#SEMANTIC_ERROR" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L55">#</a></dt>
<dd class="ddef">
<div class="summary">Customizable formats for error messages.</div>
<ul>
   <li>0: file path to the source text.</li>
   <li>1: line number.</li>
   <li>2: column number.</li>
   <li>3: error message.</li>
 </ul></dd>
<dt class="decl">var <a class="symbol _variable" name="TAB_WIDTH" href="./htmlsrc/dilconf.html#L60" kind="variable" beg="60" end="60">TAB_WIDTH</a>; <a title="Permalink to this symbol" href="#TAB_WIDTH" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dilconf.html#L60">#</a></dt>
<dd class="ddef">
<div class="summary">The width of the tabulator character set in your editor.</div>
Important for calculating correct column numbers for compiler messages.</dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:53 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>